package com.stylefeng.guns.modular.system.model;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author guns
 * @since 2018-07-28
 */
@TableName("tb_stream")
public class Stream extends Model<Stream> {

    private static final long serialVersionUID = 1L;

    /**
     * id 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 商品名称
     */
    @TableField("stream_name")
    private String streamName;
    /**
     * 客户名称
     */
    @TableField("custom_name")
    private String customName;
    /**
     * 直播流类型
     */
    @TableField("stream_goods_type")
    private Integer streamGoodsType;
    /**
     * 直播流地址
     */
    @TableField("stream_url")
    private String streamUrl;
    /**
     * 创建时间
     */
    @TableField("create_time")
    private Date createTime;
    /**
     * 状态（是否失效）1正常，2失效
     */
    private Integer status;
    /**
     * 顺序
     */
    private Integer num;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getStreamName() {
        return streamName;
    }

    public void setStreamName(String streamName) {
        this.streamName = streamName;
    }

    public String getCustomName() {
        return customName;
    }

    public void setCustomName(String customName) {
        this.customName = customName;
    }

    public Integer getStreamGoodsType() {
        return streamGoodsType;
    }

    public void setStreamGoodsType(Integer streamGoodsType) {
        this.streamGoodsType = streamGoodsType;
    }

    public String getStreamUrl() {
        return streamUrl;
    }

    public void setStreamUrl(String streamUrl) {
        this.streamUrl = streamUrl;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "Stream{" +
        "id=" + id +
        ", streamName=" + streamName +
        ", customName=" + customName +
        ", streamGoodsType=" + streamGoodsType +
        ", streamUrl=" + streamUrl +
        ", createTime=" + createTime +
        ", status=" + status +
        ", num=" + num +
        "}";
    }
}
